<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,selectzone.js,colorselector.js"}
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
{if $warning}
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
{/if}

<!-- start goods form -->
<div class="tab-div">
    <!-- tab bar -->
    <!-- tab body -->
    <div id="viewinfo-div">
      <form enctype="multipart/form-data" action="" method="post" name="theForm" onsubmit="return validate();">
        <!-- 最大文件限制 -->
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <!-- 通用信息 -->
       <div class="general-div">
	    <div id="tabbar-div" class="tabbar-div">
      <p>
        <span class="tab-front" id="general-tab">{$lang.tab_general}</span>
      </p>
    </div>
	   <div ><img src="../{$img_url}" border="0" width="350"  height="300"/></div>
	   <div class="base-detail" style="clear:both;"><ul>
	   <li><strong>{$lang.lab_goods_name}</strong><span>{$goods.goods_name|escape}</span></li>
	   <li><strong>{$lang.lab_goods_sn}</strong><span>{$goods.goods_sn|escape}</span></li>
	   
	   <li><strong>{$lang.lab_goods_sn2}</strong><span>{$goods.goods_sn2|escape}</span></li>

	     <li><strong>{$lang.lab_goods_cat}</strong><span>{$goods.cat_name}</span></li>
		  <li><strong>{$lang.lab_other_cat}</strong>
		  {foreach from=$goods.other_cat item=cat_id key=key} 
		  <span>{$goods.other_cat_name.$cat_id}<{$cat_id}></span>           
		 {/foreach}</li>
		 <li><strong>{$lang.lab_goods_brand}</strong><span>{$goods.brand_name|escape}</span></li>
		 {if $suppliers_exists eq 1}<li><strong>{$lang.label_suppliers}</strong><span>{$goods.suppliers_name}</span>  <a href="suppliers.php?act=view&id={$goods.suppliers_id}" title="{$lang.view_suppliers_info}"> <img src="images/icon_view.gif" width="16" height="16" border="0" /></a></li> {/if}
	    <li><strong>{$lang.lab_shop_price}</strong><span>{$goods.shop_price}</span></li>
		{if $user_rank_list}<li><strong>{$lang.lab_user_price}</strong><span> {foreach from=$user_rank_list item=user_rank}
              {$user_rank.rank_name}<span id="nrank_{$user_rank.rank_id}"></span><input type="text" id="rank_{$user_rank.rank_id}" name="user_price[]" value="{$member_price_list[$user_rank.rank_id]|default:-1}" onkeyup="if(parseInt(this.value)<-1){this.value='-1';};set_price_note({$user_rank.rank_id})" size="8" />
              <input type="hidden" name="user_rank[]" value="{$user_rank.rank_id}" />
              {/foreach}</span></li>{/if}
	    <li><strong>{$lang.product_model}</strong><span>{$goods.product_model|escape}</span></li>
		<li><strong>{$lang.standard}</strong><span>{$goods.standard|escape}</span></li>
		<li ><strong>{$lang.technical_parameters}</strong><span>{$goods.technical_parameters|escape}</span></li>
		<li><strong>{$lang.main_material}</strong><span>{$goods.main_material|escape}</span></li>
		<li><strong>{$lang.cost}</strong><span>{$goods.cost}</span></li>
		<li><strong>{$lang.unit}</strong><span>{$goods.unit}</span></li>
		<li><strong>{$lang.categories_of_taxes}</strong><span>{$goods.categories_of_taxes|escape}</span></li>
		<li><strong>{$lang.tax}</strong><span>{$goods.unit}</span></li>
		<li><strong>{$lang.min_sale_qty}</strong><span>{$goods.min_sale_qty}</span></li>
		<li><strong>{$lang.state_of_origin}</strong><span>{$goods.state_of_origin|escape}</span></li>
		<li><strong>{$lang.production_cycle}</strong><span>{$goods.production_cycle|escape}</span></li>
		<li><strong>{$lang.package_size}</strong><span>{$goods.package_size|escape}</span></li>	
		<li><strong>{$lang.product_certification}</strong><span>{$goods.product_certification|escape}</span></li>	
		<li><strong>{$lang.hscode}</strong><span>{$goods.hscode|escape}</span></li>		
		 </ul></div>
	<div style="clear:both; height:5px;"></div> 
	 <!-- 详细描述 -->	
	    <div class="m-detail">
	   <div id="detail-tab" class="tabbar-div"><P><span class="tab-front">{$lang.tab_detail}</span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('detail-table');">{$lang.tab_show}</span></P></div>
	   <div class="m-detailbody">{$goods_desc}</div>
	   </div>
	  <!-- 其他信息 -->
	   <div class="o-detail">
		<div id="mix-tab" class="tabbar-div"><p><span class="tab-front">{$lang.tab_mix}</span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('mix-table');">{$lang.tab_show}</span></p></div>
		<div class="o-detailbody"><ul>
		{if $code eq ''}
		<li><strong>{$lang.lab_gross_weight}</strong><span>{$goods.gross_weight}</span></li>
		<li><strong>{$lang.lab_goods_weight}</strong><span>{$goods.goods_weight_by_unit}</span></li>
		 {/if}
		  {if $cfg.use_storage}
		  <li><strong>{$lang.lab_goods_number}</strong><span>{$goods.goods_number}</span></li>
		  <li><strong>{$lang.lab_warn_number}</strong><span>{$goods.warn_number}</span></li>
		{/if}
		<li><strong>{$lang.lab_is_on_sale}</strong><span>{if $goods.is_on_sale}√ {$lang.on_sale_desc}{/if}</span></li>
		<li><strong>{$lang.lab_is_alone_sale}</strong><span>{if $goods.is_alone_sale}√{$lang.alone_sale}{/if}</span></li>
	   <li><strong>{$lang.lab_is_free_shipping}</strong><span>{if $goods.is_shipping}√{$lang.free_shipping}{/if}</span></li>
	   <li><strong>{$lang.lab_keywords}</strong><span>{$goods.keywords|escape}</span></li>
	   <li><strong>{$lang.lab_goods_brief}</strong><span>{$goods.goods_brief|escape}</span></li>
	    <li><strong>{$lang.lab_seller_note}</strong><span>{$goods.seller_note}</span></li>
		</ul></div></div>
	   </div>
	  <!-- 属性与规格 -->
		<div class="properties"><div id="properties-tab" class="tabbar-div"><p><span class="tab-front">{$lang.tab_properties}</span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('properties-table');">{$lang.tab_show}</span></p></div>
		<div class="propertiesbody"><ul>
		<!--{if $goods_type_list} <li><strong>{$lang.lab_goods_type}</strong><span> {$goods_type_list}</span></li>
		{/if}-->
		{$goods_attr_html}
		</ul></div></div>
        
        <div class="button-div">
          <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
          {if $code neq ''}
          <input type="hidden" name="extension_code" value="{$code}" />
          {/if}
          <input type="submit" value="{$lang.print_submit}" disabled="true" class="button" />
         </div>
        <input type="hidden" name="act" value="{$form_act}" />
      </form>
    </div>
</div>

{include file="pagefooter.htm"}
